<ul class="offer_list" id="scroller">

<?php if(!empty($n_offer)):

foreach ($n_offer as $n_offer):?>

        <li>

        <a href="<?php echo base_url(),'offer/detail/',$n_offer->id;?>">

            <span class="img_offer left">

                <img src="<?php if($n_offer->img)echo $n_offer->img;else echo base_url().'upload/images/defalt_offer/defalt_offer.png';?>"/>

            </span>

            <span class="off_hilight left">

                <?php echo $n_offer->point_rate;?>

            </span>

            <p><?php echo $n_offer->title;?></p>

        </a>

        </li>

<?php 

endforeach;

endif;?>                     

                          

</ul>